package srvGoods

import (
	"context"
	goods_pb "mxshop/api/goods/v1"
	dtoGoods "mxshop/app/mxshop_api/api/internal/domain/dto/goods"
)

type CategorySrv interface {
	// 商品分类
	GetAllCategorysList(ctx context.Context) (*dtoGoods.CategoryDTOList, error)
	GetCategorysList(ctx context.Context, req *goods_pb.CategoryListRequest) (*dtoGoods.CategoryDTOList, error)
	GetSubCategory(ctx context.Context, req *goods_pb.CategoryListRequest) (*dtoGoods.CategoryDTO, error)
	CreateCategory(ctx context.Context, req *dtoGoods.CategoryDTO) (*dtoGoods.CategoryDTO, error)
	DeleteCategory(ctx context.Context, ID int64) error
	UpdateCategory(ctx context.Context, req *dtoGoods.CategoryDTO) error
}
